package com.cuit.riskassessment.dao.isms;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cuit.riskassessment.vo.FocManage;
import com.cuit.riskassessment.vo.News;

/**
 * ClassName: FocManageMapper <br/>
 * Function: 消息公告类的相关数据操作 <br/>
 * date: 2013-3-8 上午8:44:31 <br/>
 *
 * @author 张星宇 zhangxingyu.pc@qq.com
 * @version 
 * @since JDK 1.6
 */
public interface NewsManageMapper {
	/**
	 * TODO 添加一条记录
	 * @param info
	 * @return 受影响的条数
	 */
	public int addControl(News news);
	public int updateControl(News news);
	/**
	 * TODO 分页数据
	 * @param page 页码 count 页数
	 * @return 
	 */
	public List<News> getListControl(@Param(value="page")Integer page,@Param(value="count")Integer count);
	/**
	 * TODO 数据条数
	 * @return
	 */
	public int getTotalCount();
	/**
	 * TODO 数据条数
	 * @return
	 */
	public int delControl(@Param(value="id")Integer id);
	
	public int addDyn(News news);
	public List<News> pageDyn(@Param(value="page")Integer page,@Param(value="count")Integer count);
	public Object getDynTotal();
}
